package TAIC.util;

import java.io.File;
import java.io.PrintStream;

public class Rename {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int count = 0 ; 
		try {
			File file = new File ( ".") ;
			File [] files =  file.listFiles(); 
			for ( File iter : files ){ 
				if ( !iter.getName().equalsIgnoreCase( "index.txt")) 
					iter.renameTo( new File ( "file" + count + ".txt") ) ;
				count ++ ; 
			}
		}catch ( Exception e ) {
			e.printStackTrace() ; 
		}
	}

}
